From: Marco Trevisan (TreviƱo) Date: Mon, 17 Jun 2019 10:36:34 +0000 (+0200) Subject: boxpointer: Remove deprecated show/hide methods X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~845^2^2~140 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=76dc77f617d79b359a527e9b899b11a6632829fd;p=gnome-shell.git boxpointer: Remove deprecated show/hide methods https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/576 --- diff --git a/js/ui/boxpointer.js b/js/ui/boxpointer.js index 3c704d2d3..02491e989 100644 --- a/js/ui/boxpointer.js +++ b/js/ui/boxpointer.js @@ -76,36 +76,6 @@ var BoxPointer = GObject.registerClass({ } } - // BoxPointer.show() and BoxPointer.hide() are here for only compatibility - // purposes, and will be removed in 3.32. - show(animate, onComplete) { - if (animate !== undefined) { - try { - throw new Error('BoxPointer.show() has been moved to BoxPointer.open(), this code will break in the future.'); - } catch(e) { - logError(e); - this.open(animate, onComplete); - return; - } - } - - this.visible = true; - } - - hide(animate, onComplete) { - if (animate !== undefined) { - try { - throw new Error('BoxPointer.hide() has been moved to BoxPointer.close(), this code will break in the future.'); - } catch(e) { - logError(e); - this.close(animate, onComplete); - return; - } - } - - this.visible = false; - } - open(animate, onComplete) { let themeNode = this.get_theme_node(); let rise = themeNode.get_length('-arrow-rise');